package com.zy.cat.entity.dev.resp;
import java.util.List;
import java.util.Map;

import javax.persistence.Column;

import com.fasterxml.jackson.annotation.JsonIgnore;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @info 9趣猫用户互拆红包邀请进度信息
 * @author Link
 * @date 2019-10-30 09:14
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("9趣猫用户互拆红包邀请进度信息")
public class CatDevHCInviteInfoResp {
	
	@JsonIgnore
	@ApiModelProperty(value = "邀请人", example = "")
	private String pid;
	
	@ApiModelProperty(value = "邀请奖励（分）", example = "100")
	private long income;
	
	@ApiModelProperty(value = "奖励是否可提现（0.否、1.可以、2.达标已过期、3.未达标已过期）,可提现，直接弹窗提示可提现", example = "0")
	private int lstatus;

	@ApiModelProperty(value = "截至时间", example = "2019-11-11 10:10:10")
	private String etime;
	
	@ApiModelProperty(value = "邀请奖励列表信息", example = "{}")
	private List<IncomeData> rlist;
	
	@ApiModelProperty(value = "是否为本轮首次进入,0.非本轮首次进入、1.本轮首次进入(弹出奖励2.8元框/游戏奖励)", example = "0")
	private int isfirst;
	
	@ApiModelProperty(value = "本轮互拆活动ID", example = "c9adb120ca2b48f88626ebd35000fa08")
	@JsonIgnore
	private String aid;
	
	@ApiModelProperty(value = "被邀请人的微信id", example = "c9adb120ca2b48f88626ebd35000fa08")
	@JsonIgnore
	private String yunionid;
	
	@Data
	@NoArgsConstructor
	@AllArgsConstructor
	public static class IncomeData{
		@ApiModelProperty(value = "奖励来源名称", example = "刮刮卡")
		private String lname;
		
		@ApiModelProperty(value = "奖励来源图片", example = "https://")
		private String licon;
		
		@ApiModelProperty(value = "邀请奖励（分）", example = "100")
		private long lincome;
		
		@ApiModelProperty(value = "奖励来源类型（0.个人、1.刮刮卡进入、2.神奇便利店进入、3.微信邀请成功）", example = "0")
		private int ltype;

		public IncomeData(long lincome) {
			super();
			this.lincome = lincome;
		}
		
		
	}

	public CatDevHCInviteInfoResp(String pid) {
		super();
		this.pid = pid;
	}

	public CatDevHCInviteInfoResp(String pid, long income, int lstatus, String etime, List<IncomeData> rlist,
			int isfirst) {
		super();
		this.pid = pid;
		this.income = income;
		this.lstatus = lstatus;
		this.etime = etime;
		this.rlist = rlist;
		this.isfirst = isfirst;
	}
	
	
	
}
